package com.mrd.gtimp.base.repository;

/**
 * <p>
 * application name: gtimp
 * <p>
 * copyright: Copyright@2012 明睿达科技有限公司
 */

import com.mrd.gtimp.base.entity.Module;
import com.mrd.spring.repository.BaseRepository;

import java.util.List;

/**
 * @author qiul
 */
public interface ModuleDao extends BaseRepository<Module, String> {
	List<Module> findByParentId(String pid);

	List<Module> findByParentIsNull();

	List<Module> findByParentIdOrderByOrderAscNameAsc(String pid);

	List<Module> findByParentIsNullOrderByOrderAscNameAsc();
}
